import React from 'react';
import { Button, Result } from 'antd';
import {useNavigate, useParams} from "react-router-dom";
const ResultPage: React.FC = () => {
    const navigate = useNavigate();
    const {status,title,msg} = useParams();
    return <Result
        // @ts-ignore
        status={status}
        title={title}
        subTitle={msg}
        extra={<Button type="primary" onClick={()=>navigate('/')}>返回主页</Button>}
    />
};

export default ResultPage;